<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  <meta name="misapplication-tap-highlight" content="no" />
  <meta name="HandheldFriendly" content="true" />
  <meta name="MobileOptimized" content="320" />
  <link rel="stylesheet" href="cs.css">
  <title>QmSdk示例</title>
</head>

<body>
  <ul>
    <li id="auth.html" onclick="openLink(this.id, '权限相关')">
      <span class="item">权限相关
        <div class="chs">获取系统相关功能前，请先获取相关功能权限；例如获取手机相册照片，请先获取相册权限；</div>
      </span>
    </li>

    <li id="map.html" onclick="openLink(this.id, '地图相关')">
      <span class="item">地图相关
        <div class="chs">调用导航、获取位置信息</div>
      </span>
    </li>

    <li id="storage.html" onclick="openLink(this.id, '存储相关')">
      <span class="item">存储相关
        <div class="chs">原生暂存 H5 数据、获取数据</div>
      </span>
    </li>

    <li id="photos.html" onclick="openLink(this.id, '图片处理')">
      <span class="item">图片处理
        <div class="chs">图片预览、保存图片等</div>
      </span>
    </li>

    <li id="viewer.html" onclick="openLink(this.id, '文档预览')">
      <span class="item">文档预览
        <div class="chs">图片、Word文档、Pdf文件预览等</div>
      </span>
    </li>

    <li id="other.html" onclick="openLink(this.id, '其他功能')">
      <span class="item">其他功能
        <div class="chs">拨打电话、文件上传、语音识别、扫描二维码、获取系统信息等</div>
      </span>
    </li>

  </ul>
  <script src="../qmsdk.js"></script>
  <script>
    function openLink(id, title) {
      window.qmSdk.openLink({
        title: title,
        url: "_www/static/libs/demo/" + id
      });
    }

  </script>
</body>

</html>
